<extend name="Layout/page_detail" />
<block name="content">
{:W('PageHeader/simple',array('name'=>'修改党员情况:'.$folder_name,'search'=>'N'))}

    <form method='post' id="form_data" name="form_data" enctype="multipart/form-data"  class="well form-horizontal">
        <input type="hidden" id="id" name="id" value="{$vo.id}">
        <input type="hidden" id="ajax" name="ajax" value="0">
        <input type="hidden" id="opmode" name="opmode" value="edit">

		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="name">姓名*：</label>
            <div class="col-sm-8">
                <input type="text" id="name" name="name" value="{$vo.name}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="sex">性别*：</label>
            <div class="col-sm-8">
                <select name="sex" id="sex" class="form-control" msg="请选择" check="require">
                <option value="">请选择</option>
                
					<option value="0">男</option>
					<option value="1">女</option>                
				</select>
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="nation">民族*：</label>
            <div class="col-sm-8">
                <input type="text" id="nation" name="nation" value="{$vo.nation}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="borndate">出生日期*：</label>
            <div class="col-sm-8">
                <input type="text" id="borndate" name="borndate" value="{$vo.borndate|substr=0,10}"  class="form-control input-date" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="hometown">籍贯*：</label>
            <div class="col-sm-8">
                <input type="text" id="hometown" name="hometown" value="{$vo.hometown}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="partydate">入党时间*：</label>
            <div class="col-sm-8">
                <input type="text" id="partydate" name="partydate" value="{$vo.partydate|substr=0,10}"  class="form-control input-date" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="education_grade_id">学历*：</label>
            <div class="col-sm-8">
                <select name="education_grade_id" id="education_grade_id" class="form-control" msg="请选择" check="require">
                <option value="">请选择</option>
                {:fill_option($education_grade_list)}
                </select>
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="graduate_school">毕业院校：</label>
            <div class="col-sm-8">
                <input type="text" id="graduate_school" name="graduate_school" value="{$vo.graduate_school}"  class="form-control" >
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="idcard_num">身份证号*：</label>
            <div class="col-sm-8">
                <input type="text" id="idcard_num" name="idcard_num" value="{$vo.idcard_num}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="work_phone">办公电话：</label>
            <div class="col-sm-8">
                <input type="text" id="work_phone" name="work_phone" value="{$vo.work_phone}"  class="form-control" >
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="mobile_phone">移动电话*：</label>
            <div class="col-sm-8">
                <input type="text" id="mobile_phone" name="mobile_phone" value="{$vo.mobile_phone}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="work_company">工作单位*：</label>
            <div class="col-sm-8">
                <input type="text" id="work_company" name="work_company" value="{$vo.work_company}"  class="form-control" check="require">
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="home_address">家庭住址：</label>
            <div class="col-sm-8">
                <input type="text" id="home_address" name="home_address" value="{$vo.home_address}"  class="form-control" >
            </div>
        </div>
		<div class="clearfix"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="special">专业特长：</label>
            <div class="col-sm-10">
                <textarea  class="editor" id="special" name="special" style="width:100%;height:200px;" >{$vo.special}</textarea>
            </div>
        </div>        <div class="form-group">

        </div>
        <div class="form-actions">
            <input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();">
            <input  class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
        </div>
    </form>
</block>
<block name="js">
<script type="text/javascript">
    function save() {
        window.onbeforeunload = null;
        if (check_form("form_data")) {
        sendForm("form_data", "{:U('save')}");
        }
    }

    $(document).ready(function() {

		set_val('sex',"{$vo.sex}");
		fill_time("borndate");
		fill_time("partydate");    
		set_val('education_grade_id',"{$vo.education_grade_id}");
    });
</script>
</block>